<?php
require_once dirname(dirname(__FILE__)).'/include/db_connect.php';

function generateNewMsg($from,$to_user_id,$content) {
	$conn = get_db_conn();
	$sql = 'insert into msg(from,to_user_id,add_time,content) values("'
		.$from.'",'.$to_user_id.','.date('Y-m-d H:i:s').',"'.$content.'");';
	mysql_query($sql,$conn) or die("db error");
	return true;
}
//echo  date('Y-m-d H:i:s');